//
//  ikarosMacros.h
//  ikarosKit
//
//  Created by rui on 2024/10/22.
//

#import <Foundation/Foundation.h>

// 弱引用
#define kJRWeakSelf __weak typeof(self) weakSelf = self;

// 日志输出
#ifdef DEBUG
#define JRLog(FORMAT, ...) fprintf(stderr,"%s:%d\t%s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])
#else
#define JRLog(...)
#endif

NS_ASSUME_NONNULL_BEGIN

//FOUNDATION_EXTERN NSString * _Nullable ikaroKitVersion(void);
//FOUNDATION_EXTERN NSString * _Nullable ikaroKitBuildVersion(void);

/**
 获取屏幕宽度
 */
FOUNDATION_EXTERN CGFloat kJRScreenWidth(void);
/**
 获取屏幕高度
 */
FOUNDATION_EXTERN CGFloat kJRScreenHeight(void);
// 宽度缩放比例
FOUNDATION_EXTERN CGFloat kJRWidthRadio(CGFloat width);
// 高度缩放比例
FOUNDATION_EXTERN CGFloat kJRHeightRadio(CGFloat height);

NS_ASSUME_NONNULL_END
